import * as rule from '@/utils/rule'
export const modalConfig = {
     title: '会议记录',
     formItems: [
          {
               field: 'title',
               type: 'input',
               label: '会议主题',
               placeHolder: '请输入会议主题',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入会议主题')],
               visible: true,
               initValue: '',
          },
          {
               field: 'district',
               type: 'cascader',
               label: '行政区',
               placeHolder: '请输入行政区',
               disabled: false,
               rules: [],
               props: { showAllLevels: false, emitPath: false },
               visible: true,
               cascader: [],
               initValue: '',
          },
          {
               field: 'starttime',
               type: 'datepicker',
               label: '开始时间',
               placeHolder: '请选择开始时间',
               disabled: false,
               rules: [rule.cannotBeEmpty('请选择开始时间')],
               visible: true,
               initValue: '',
               otherOption: {
                    format: 'YYYY/MM/DD',
                    valueFormat: 'YYYY-MM-DD',
                    type: 'date',
               },
          },
          {
               field: 'endtime',
               type: 'datepicker',
               label: '结束时间',
               placeHolder: '请输入结束时间',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入结束时间')],
               visible: true,
               initValue: '',
               otherOption: {
                    format: 'YYYY/MM/DD',
                    valueFormat: 'YYYY-MM-DD',
                    type: 'date',
               },
          },
          {
               field: 'position',
               type: 'input',
               label: '地点',
               placeHolder: '请输入地点',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入地点')],
               visible: true,
               initValue: '',
          },
          {
               field: 'host',
               type: 'input',
               label: '主持人',
               placeHolder: '请输入主持人',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入主持人')],
               visible: true,
               initValue: '',
          },
          {
               field: 'paticipants',
               type: 'input',
               label: '参会人员',
               placeHolder: '请输入参会人员',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入参会人员')],
               visible: true,
               initValue: '',
          },
          {
               field: 'contents',
               type: 'textarea',
               label: '会议内容',
               placeHolder: '请输入会议内容',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入会议内容')],
               visible: true,
               initValue: '',
          },
          {
               field: 'notes',
               type: 'textarea',
               label: '注意事项',
               placeHolder: '请输入注意事项',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入注意事项')],
               visible: true,
               initValue: '',
          },
     ],
     labelWidth: 'auto',
     colLayout: { span: 24 },
     itemStyle: { padding: 0 },
}
